<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/wm.tld" prefix="wm"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>票易信息管理系统</title>
<link rel="stylesheet" href="/css/admin.css" type="text/css"/>
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="/js/popup.js"></script>
<script type="text/javascript">
function reply(id){ 
		openshow('admin_user_comment.action?action=reply&id='+id,'回复留言',true,600,300,1);
}
function close_reply(){
	//alert('留言成功!');
	g_close_pop();
	window.location.reload();
}
</script>
</head>
<body leftmargin="2" topmargin="2">
<fieldset><legend>留言管理：</legend>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <COLGROUP>
  <COL width="100" />
  <COL width="*" />
  <COL width="100" />
  <tr style="font-weight: bold;" align="center" class="tdbg2"> 
    <td>留言人</td>
    <td>留言信息/回复信息</td>
    <td width="100">管理操作</td>
  </tr>
<s:iterator id="c" value="%{pageList.objectList}" status="st" >
    <tr class="tdbg3" align="center"> 
      <td><s:property value="#c.user.userName"/></td>
      <td><s:property value="#c.message"/></td>
      <td><a href="javascript:reply(<s:property value="#c.id"/>);">回复</a></td>
    </tr>
    <s:if test="#c.reply != ''">
    <tr class="tdbg2" align="center"> 
      <td></td>
      <td><s:property value="#c.reply"/></td>
      <td></td>
    </tr>
    </s:if>
</s:iterator>
<tr align="center" class="tdbg2"> 
   <td colspan="4"><wm:pages value="%{pageList.pages}"/></td>
</tr>
</table>
</fieldset>
</body>
</html>
